package com.example.myspringboot.design.factory.abstracts;

import com.example.myspringboot.design.factory.abstracts.SimpleFactory.Creator;
import com.example.myspringboot.design.factory.abstracts.SimpleFactory.impl.ConcreteCreatorA;
import com.example.myspringboot.design.factory.abstracts.SimpleFactory.impl.ConcreteCreatorB;
import com.example.myspringboot.design.factory.dto.Product;

/**
 * @Author ZhengShan
 * @Date 2024 06 26 11 33
 **/
public class ClientMain {

    public static void main(String[] args) {
        Creator creatorA = new ConcreteCreatorA();
        Product productA = creatorA.createProduct();
        productA.use();
        Creator creatorB = new ConcreteCreatorB();
        Product productB = creatorB.createProduct();
        productB.use();
    }
}
